Repository navigation
Conversation
…iter) Adds `MonotonicMakimaInterpolation(u, t; kwargs...)`, a shape-preserving variant of makima. Like `PCHIPInterpolation`, it computes knot slopes and returns a `CubicHermiteSpline`, so extrapolation, derivatives, integrals and `cache_parameters` work as for any Hermite spline. The slopes are: 1. the makima slopes of `AkimaInterpolation(u, t; modified = true)`, reusing the existing kernel (split out of `_akima_init!` as `_akima_slopes!`); 2. a sign pass that zeroes a slope whose sign differs from an adjacent secant, or whose adjacent secant is zero (flat segments stay flat); 3. a square Fritsch-Carlson limiter: per segment, left to right, if max(alpha, beta) > 3 both end slopes are scaled by 3 / max(alpha, beta). Where steps 2 and 3 do not act, the result is identical to makima. Also fixes `AkimaInterpolation` with two points, which read an uninitialized ghost secant; it now gives the straight line through the two points. The per-dimension wrappers of `du_PCHIP` are generalized into `_du_per_dimension` and shared by both slope kernels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Anshul Singhvi <anshul.singhvi@juliahub.com> Harness: claude Model: claude-opus-5-5 Factory-Task: 22fff5cb-ab23-4f6c-a31f-195f557afeb0 Agent-Harness: Claude 2.1.319 Agent-Model: claude-opus-5-5 Agent-Session: factory task 22fff5cb-ab23-4f6c-a31f-195f557afeb0 on m_e7dafdb55d0afc98861a124723a9e3fd (no session URL)
…, β) When max(α, β) > 3 on a segment, compute r = 3 / max(α, β) once and multiply both end slopes by it. This is the conventional form of the square rule. Previously the slopes were set to 3s * (α / max(α, β)) and 3s * (β / max(α, β)), which made the larger one exactly 3s; now it is 3s up to rounding (a few ulps). Since r <= 1, a limited slope still never grows. The docstring describes the rounding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Anshul Singhvi <anshul.singhvi@juliahub.com> Harness: claude Model: claude-opus-5-5 Factory-Task: 8d831c30-b5f6-4950-9cba-449eed9c4c5f Agent-Harness: Claude 2.1.319 Agent-Model: claude-opus-5-5 Agent-Session: factory task 8d831c30-b5f6-4950-9cba-449eed9c4c5f on m_e7dafdb55d0afc98861a124723a9e3fd (no session URL)
Reduce the MonotonicMakimaInterpolation tests to a compact set: monotone output on a few random tables, equality with makima where the limiter is inactive, flat segments, limiter scaling (checks du == r * makima slope), 2-point tables, and an extrapolation/caching smoke test, plus derivative checks against finite differences for Vector and Matrix data. Drop the 200-case sweep, the redundant edge cases, the integral testset and the second docs example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Anshul Singhvi <anshul.singhvi@juliahub.com> Harness: claude Model: claude-opus-5-5 Factory-Task: 8d831c30-b5f6-4950-9cba-449eed9c4c5f Agent-Harness: Claude 2.1.319 Agent-Model: claude-opus-5-5 Agent-Session: factory task 8d831c30-b5f6-4950-9cba-449eed9c4c5f on m_e7dafdb55d0afc98861a124723a9e3fd (no session URL)
Used in the citation "SIAM J. Numer. Anal." in the MonotonicMakimaInterpolation docstring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Anshul Singhvi <anshul.singhvi@juliahub.com> Harness: claude Model: claude-opus-5-5 Factory-Task: 8d831c30-b5f6-4950-9cba-449eed9c4c5f Agent-Harness: Claude 2.1.319 Agent-Model: claude-opus-5-5 Agent-Session: factory task 8d831c30-b5f6-4950-9cba-449eed9c4c5f on m_e7dafdb55d0afc98861a124723a9e3fd (no session URL)
Co-Authored-By: Anshul Singhvi <anshul.singhvi@juliahub.com> Co-Authored-By: Codex <noreply@openai.com> Harness: codex Model: gpt-6.1-sol Factory-Task: 031f1039-f80a-483c-925b-8c42fd463210 Agent-Harness: Codex 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: factory task 031f1039-f80a-483c-925b-8c42fd463210 on m_e7dafdb55d0afc98861a124723a9e3fd (no session URL)
Co-Authored-By: Anshul Singhvi <anshul.singhvi@juliahub.com> Co-Authored-By: Codex <noreply@openai.com> Harness: codex Model: gpt-6.1-sol Factory-Task: 2ac96216-b848-4d94-88f8-f574017c8dbc Agent-Harness: Codex 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: factory task 2ac96216-b848-4d94-88f8-f574017c8dbc on m_3e9b2709b53bf4c4dade6cc909217625 (no session URL)
Widen fixed-width secant and Hermite differences before subtracting. Divide by integer knot spacing twice to avoid overflow in the square. Co-authored-by: Codex gpt-6.2-sol (codex-cli 0.172.0, session 01a22642-ff44-7e32-84de-f1cca932f790) <noreply@openai.com>
Widen segment differences and avoid standalone offset squares during evaluation and integration. Use the same width for Akima slopes and coefficients. Keep native Hermite arithmetic when the square fits. Co-authored-by: Codex gpt-6.2-sol (codex-cli 0.172.0, session 01a22642-ff44-7e32-84de-f1cca932f790) <noreply@openai.com>
PR: #634 Reviewed head: 7bf8775 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H1: The existing public Blocking findings
Nonblocking findings
What I ran
What I did not verifyThe full interpolation, interface, parameter-cache, and derivative file runs had no result by the end of the review. The focused runs above exercised the affected testsets. Documentation builds, downstream packages, other optional extensions, prerelease Julia, and 32-bit x86 remain unverified. No GPU-specific change was present in the patch, and no compute GPU was available in the ARM sandbox. Head link: 7bf8775 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
PR: #634 Reviewed head: 480e42b Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H2: The patch changes default cubic evaluation and integration, and a previously finite Hermite evaluation now returns Blocking findings
Nonblocking findings
What I ran
What I did not verify
Head link: 480e42b 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
Restore the original floating-point evaluation and integral formulas. Keep checked widths and factored offsets on fixed-width integer paths. Add a finite Hermite regression and matrix integral benchmarks. Co-authored-by: Codex gpt-6.2-sol (codex-cli 0.172.0, session 01a22642-ff44-7e32-84de-f1cca932f790) <noreply@openai.com>
PR: #634 Reviewed head: 48ac791 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H2: The patch changes default numerical arithmetic in Akima, cubic Hermite, PCHIP, and shared cubic integration.) Blocking findings
Nonblocking findings
What I ran
What I did not verify
Head link: 48ac791 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
Check integral and sorted Hermite offsets before using the compact formulas. Fuse the wide integral fallback for array-valued samples and keep small 128-bit differences in native signed arithmetic. Co-authored-by: Codex gpt-6.2-sol (codex-cli 0.172.0, session 01a22642-ff44-7e32-84de-f1cca932f790) <noreply@openai.com>
PR: #634 Reviewed head: 3f142e9 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H2: The patch changes default numerics in existing spline paths and turns a previously finite PCHIP result into Blocking findings
Nonblocking findings
What I ran
What I did not verifyThe broader file-level suites had produced no result when the review ended. I did not verify the complete CI matrix, 32-bit execution, the extension suites, the docs build, or downstream performance. No GPU device was exposed on the ARM host, and I found no GPU-specific changed path to exercise. Head link: 3f142e9 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
Companion to #630, on top of its head
b4d3f1b.Widens fixed-width integer value and knot differences before subtracting or squaring in the Akima secants and Hermite coefficients, with regression tests for
UInt8[3,2],Int8and a2^32knot spacing.Two-point Akima slope handling is left to #631.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HN2L2WdGLXmGFQeeESvCT1